package com.own.business.creditbank.model.response;

import com.alibaba.fastjson2.JSON;
import com.own.business.creditbank.function.ResolveFunction;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * ResultRecordEnumResponse
 *
 * @author chenxueli
 * @date 2022-08-11 11:42:00
 */
@Schema(title = "成果信息枚举值响应对象")
@Getter
@Setter
@Accessors(chain = true)
public class ResultRecordEnumResponse implements Serializable {

    public static final ResolveFunction<ResultRecordEnumResponse> RESOLVE = content -> JSON.parseObject(content, ResultRecordEnumResponse.class);

    @Schema(title = "列表信息")
    private List<Sub> list;

    @Data
    public static class Sub implements Serializable {

        @Schema(title = "枚举列表")
        private List<String> enums;

        @Schema(title = "名称信息")
        private String name;

    }

}
